import { mainRouter } from '@/router'
const state = {
  menuItems: []
}

const getters = {
  getMenusItems() {
    return mainRouter.map((el: any) => ({
      value: el.path,
      name: el.meta.title,
      icon: el.meta.icon
    }))
  },
  getMenusNames() {
    return mainRouter.map((el: any) => el.path.replace(/\//g, ''))
  }
}

const mutations = {

}

export default {
  state,
  getters,
  mutations
}